package com.sm.healthy.ui.fragment

import android.os.Bundle
import androidx.fragment.app.Fragment
import com.sm.healthy.R
import com.sm.healthy.base.BaseFragment
import com.sm.healthy.base.handle.TopHandle
import com.sm.healthy.databinding.FragmentHistoryBloodOxygenBinding
import com.sm.healthy.model.MainViewModel
import kotlinx.android.synthetic.main.fragment_home.*
import me.hgj.jetpackmvvm.ext.nav

// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private const val ARG_PARAM1 = "param1"
private const val ARG_PARAM2 = "param2"

/**
 * A simple [Fragment] subclass.
 * Use the [HistoryBloodOxygenFragment.newInstance] factory method to
 * create an instance of this fragment.
 */
class HistoryBloodOxygenFragment :
    BaseFragment<MainViewModel, FragmentHistoryBloodOxygenBinding>() {
    override fun layoutId(): Int {
        return R.layout.fragment_history_blood_oxygen
    }

    override fun initView(savedInstanceState: Bundle?) {
        mDatabind.handle = TopHandle(nav())
    }
}